package BehavioralPattern;

import java.util.Arrays;

public class Test {

    public static void main(String[] args) {
        int a = 10;
        String s1 = "" + a;
        String s2 = String.valueOf(a);
        System.out.println(s1 == s2);
        System.out.println(s1.equals(s2));

        String str = "1 2 3";
        String[] s = str.split(" ");

        for (int i = 0; i < s.length; i++) {
            Integer.parseInt(s[i]);
        }
        Integer in = new Integer(str);
        int num1 = in.intValue();

        int num2 = Integer.parseInt(str);
    }
}
